#ifndef SPELL_H
#define SPELL_H
#include "../core/scene.h"
#include "../affiliate/spriteAnima.h"

class spell :public world{
protected:
    spriteAnima* anima_ = nullptr;
    float damage_ = 0.0f;
public:
    static spell* createSpell(node* parent, const char* path,glm::vec2 pos,float damage,
        const char* name = "spell",float scale = 1.0f,Anchor anchor = Anchor::ANCHOR_CENTER);
    virtual void update(float dt) override;
    void setDamage(float damage){ damage_ = damage;}
    float getDamage(){return damage_;}
    void setAnima(spriteAnima* anima);
    spriteAnima* getAnima(){return anima_;}
    void attack();
};

#endif